package team.ttorder.ttorder.dao;

import org.apache.ibatis.annotations.Select;

import team.ttorder.ttorder.model.Order;
import team.ttorder.ttorder.mymapper.MyMapper;

public interface OrderMapper extends MyMapper<Order> {
	
	@Select("SELECT id as id FROM orders WHERE  table_id = #{tableId} and order_status= 0 ")
	public Order getId(int tableId);

}
